import BasicLayout from '@/layouts/basic-layout';

const meta = {
  auth: true
};

export default {
  path: '/smart-device',
  name: 'smart-device',
  redirect: {
    name: `res-rooms`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'res-regions',
      name: `res-regions`,
      meta: {
        ...meta,
        title: '局站管理'
      },
      component: () => import('@/pages/smart-device/res-regions')
    },
    {
      path: 'res-rooms',
      name: `res-rooms`,
      meta: {
        ...meta,
        title: '机房管理'
      },
      component: () => import('@/pages/smart-device/res-rooms')
    },
    {
      path: 'device-info',
      name: `device-info`,
      meta: {
        ...meta,
        title: '设备配置'
      },
      component: () => import('@/pages/smart-device/device-info')
    },
    {
      path: 'user-info',
      name: `user-info`,
      meta: {
        ...meta,
        title: '人员配置'
      },
      component: () => import('@/pages/smart-device/user-info')
    }
  ]
};
